package com.nymph.mapping;

import com.nymph.constant.Constant.SqlType;

/**
 * @Description: This is a sample class.
 * @Author: Simon
 */
public final class MappedStatement
{
    // 命名空间
    private String namespace;

    // sql Id
    private String sqlId;

    // sqlSource 相当于sql语句
    private String sql;

    // 返回类型
    private String resultType;

    // select?update?insert?
    private SqlType sqlCommandType;

    /**
     * @return the namespace
     */
    public String getNamespace()
    {
        return namespace;
    }

    /**
     * @param namespace
     *            the namespace to set
     */
    public void setNamespace(String namespace)
    {
        this.namespace = namespace;
    }

    /**
     * @return the sqlId
     */
    public String getSqlId()
    {
        return sqlId;
    }

    /**
     * @param sqlId
     *            the sqlId to set
     */
    public void setSqlId(String sqlId)
    {
        this.sqlId = sqlId;
    }

    /**
     * @return the sql
     */
    public String getSql()
    {
        return sql;
    }

    /**
     * @param sql
     *            the sql to set
     */
    public void setSql(String sql)
    {
        this.sql = sql;
    }

    /**
     * @return the resultType
     */
    public String getResultType()
    {
        return resultType;
    }

    /**
     * @param resultType
     *            the resultType to set
     */
    public void setResultType(String resultType)
    {
        this.resultType = resultType;
    }


    /**
     * @return Returns the sqlCommandType.
     */
    public SqlType getSqlCommandType()
    {
        return sqlCommandType;
    }

    /**
     * @param sqlCommandType The sqlCommandType to set.
     */
    public void setSqlCommandType(SqlType sqlCommandType)
    {
        this.sqlCommandType = sqlCommandType;
    }

    /**
     * toString
     *
     * @return
     */
    @Override
    public String toString()
    {
        return "MappedStatement [namespace=" + namespace + ", sqlId=" + sqlId + ", sql=" + sql + ", resultType="
                + resultType + "]";
    }
}
